#!/bin/sh
#current dir is inside packages-${DISTRO_FILE_PREFIX}/$GENERICNAME/ ...
# that is: packages-woof/openssh_client/

if [ -f etc/rc.d/rc.sshd* ] ; then
	mkdir -p etc/init.d/
	mv -fv etc/rc.d/rc.sshd* etc/init.d/rc.sshd
	chmod 644 etc/init.d/rc.sshd
fi

rm btmp 2>/dev/null
rm etc/* 2>/dev/null

[ -f etc/ssh/moduli ] && rm -v etc/ssh/moduli
[ -f etc/ssh/ssh_config.new ] && mv -v etc/ssh/ssh_config.new etc/ssh/ssh_config
[ -f etc/ssh/sshd_config.new ] && mv -v etc/ssh/sshd_config.new etc/ssh/sshd_config

ln -s ssh usr/bin/slogin
